from house import *


class HouseService:
    houses = []
    id_count = None

    def __init__(self):
        # 新增测试数据
        house = House(1, "张三", "123", "北京", "未出租")
        self.houses.append(house)

    def get_house(self):
        return self.houses

    def add(self, new_house: House):
        self.id_count += 1
        new_house.id = self.id_count
        self.houses.append(new_house)

    def add_house(self):
        pass
